package com.xxx.mch.service;

import com.github.pagehelper.PageInfo;
import com.xxx.mch.domain.dto.UserResultScoreDto;
import com.xxx.mch.domain.request.QueryScoreRequest;
import java.math.BigDecimal;

import java.util.List;

/**
 * @author FengHaixin
 * @description 一句话描述该文件的用途
 * @date 2020-02-25
 */
public interface ScoreService<T, E>
{
    int saveScore(T resultScore);

    PageInfo<T> queryScoreRecord(QueryScoreRequest queryScoreRequest);

    List<T> queryTypeFilter(QueryScoreRequest queryScoreRequest);

    BigDecimal querySumScore(QueryScoreRequest queryScoreRequest);

    void createOrUpdateTemplate(List<E> templateRequest);


    UserResultScoreDto queryUserScore(String uid, String month);
}
